const state = {
    ruleTypes: [],//告警规则类别
    degreeList: [],//规则级别
    alertTypeList: [],//规则类型
    killChainList: [],//杀伤链
    indexTypes: [],//索引类型

    alarmTypeList: [],//告警类型列表
    alarmLevelList: [],//告警等级列表
    conditionOperList: [], //基线对比 条件1、条件2符号

    typeSearchList: [],
    typeStaticList: [],
    typeShowList: [],
    typeShowLessList: []
}
const mutations = {
    SET_RULE_TYPES: (state, ruleTypes) => {
        state.ruleTypes = ruleTypes
    },

    SET_DEGREE_LIST: (state, degreeList) => {
        state.degreeList = degreeList
    },

    SET_ALERT_TYPE_LIST: (state, alertTypeList) => {
        state.alertTypeList = alertTypeList
    },

    SET_KILL_CHAIN_LIST: (state, killChainList) => {
        state.killChainList = killChainList
    },

    SET_INDEX_TYPES_LIST: (state, indexTypes) => {
        state.indexTypes = indexTypes
    },

    SET_ALARM_TYPE_LIST: (state, alarmTypeList) => {
        state.alarmTypeList = alarmTypeList
    },

    SET_ALARM_LEVEL_LIST: (state, alarmLevelList) => {
        state.alarmLevelList = alarmLevelList
    },
    SET_CONDITION_OPER_LIST: (state, conditionOperList) => {
        state.conditionOperList = conditionOperList
    },

    SET_TYPE_SEARCH_LIST: (state, typeSearchList) => {
        state.typeSearchList = typeSearchList
    },

    SET_TYPE_STATIC_LIST: (state, typeStaticList) => {
        state.typeStaticList = typeStaticList
    },

    SET_TYPE_SHOW_LIST: (state, typeShowList) => {
        state.typeShowList = typeShowList
    },

    SET_TYPE_SHOW_LESS_LIST: (state, typeShowLessList) => {
        state.typeShowLessList = typeShowLessList
    },
}

const actions = {

}

export default {
    namespaced: true,
    state,
    mutations,
    actions
}

